package com.lovo.util;

import javax.swing.*;
import java.awt.*;

public class Util {
    public static int radom(int max, int min) {
        return (int) Math.random() * (max - min + 1) + min;
    }
    public static Image getImage (String path){
        return new ImageIcon(Util.class.getResource(path)).getImage();
    }
    public static ImageIcon getIcon (String path){
        return new ImageIcon(Util.class.getResource(path));
    }
}
